package com.jason.quectel0805.activities;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.jason.quectel0805.R;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

/**
 * @author：Jason
 * @date：2022/8/5 15:27
 * @email：1129847330@qq.com
 * @description:
 */
public class SecondActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        Intent intent = getIntent();
        //String name = intent.getStringExtra("name");
        //String age = intent.getStringExtra("age");
        Person person = intent.getParcelableExtra("person");
        Toast.makeText(SecondActivity.this, person.toString(), Toast.LENGTH_SHORT).show();
    }

    public void skip2LifecycleActivity(View view) {
        startActivity(new Intent(SecondActivity.this, LifecycleActivity.class));
    }
}